# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1279200840.6975009
_template_filename='/pas/python/web/pylons/blog/blog/templates/user/manage.mako'
_template_uri='/user/manage.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['js', 'title']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'base.mako', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n')
        # SOURCE LINE 4
        __M_writer(u'\n')
        # SOURCE LINE 7
        __M_writer(u'\n<span class="form">\n    ')
        # SOURCE LINE 9
        __M_writer(escape(h.secure_form(url('create_user'),id='form')))
        __M_writer(u'\n')
        # SOURCE LINE 10
        if c.SuperUser:
            # SOURCE LINE 11
            __M_writer(u'            New name , please :  ')
            __M_writer(escape(h.text(name='username',id='username',value=h.username)))
            __M_writer(u'<br>\n')
            pass
        # SOURCE LINE 13
        __M_writer(u'        New password (if you want to change) : ')
        __M_writer(escape(h.password(name='password',id='password')))
        __M_writer(u'\n        <span class="hide"> \n            <span class="error">\n                <div id="pwddifferent">Two password is not the same</div>\n            </span>\n        </span><br>\n        Password again , please : ')
        # SOURCE LINE 19
        __M_writer(escape(h.password(name='password1',id='password1')))
        __M_writer(u'<br>\n        Email : ')
        # SOURCE LINE 20
        __M_writer(escape(h.text(name='email',id='email',value=c.email)))
        __M_writer(u' <div id=\'emailerr\'></div>\n        <span class="hide"> \n            <span class="error">\n                <div id="emailempty">Email cannot be empty</div>\n                <div id="emailinvalid">Email format is not valid</div>\n            </span>\n        </span><br>\n        Your signature : ')
        # SOURCE LINE 27
        __M_writer(escape(h.textarea(name='sign',id='sign',value=c.sign)))
        __M_writer(u'<br>\n        Your description : ')
        # SOURCE LINE 28
        __M_writer(escape(h.textarea(name='description',id='description',value=c.description)))
        __M_writer(u'<br>\n\n        ')
        # SOURCE LINE 30
        __M_writer(escape(h.submit(name='submit',id='submit',value='Change It!')))
        __M_writer(u'\n    ')
        # SOURCE LINE 31
        __M_writer(escape(h.end_form()))
        __M_writer(u'\n</span>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_js(context):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n    ')
        # SOURCE LINE 6
        __M_writer(escape(h.javascript_link("/user/manage.jquery.js")))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'\n    Manage Users\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


